from fastapi import FastAPI,Request,Response,status
from fastapi.staticfiles import StaticFiles
from fastapi.templating import Jinja2Templates

from api.jinja_show import api_jinja

app = FastAPI()

# 静态文件夹，用于存放前端静态资源，如 JS、CSS 等
app.mount("/static", StaticFiles(directory="static"), name="static")

app.include_router(api_jinja,prefix="/jinja",tags='jinja')

# 配置 Jinja2 模板目录
templates = Jinja2Templates(directory="templates")


@app.get("/")
async def root():
    pass
